import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import tim from './tim';
import TIM from 'tim-js-sdk';
import Avatar from './components/utils/Avatar.vue';
import VueLazyload from 'vue-lazyload';

window.tim = tim;
window.TIM = TIM;
Vue.prototype.tim = tim;
Vue.prototype.TIM = TIM;

Vue.use(ElementUI);
Vue.use(VueLazyload);
Vue.component('Avatar', Avatar);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
